class Person {
  constructor(props) {
    this.props = props
  }
}

// class Star extends Person {}
class Star extends Person {
  constructor(...props) {
    // 相当于 this.props = props
    super(...props)
    console.log(this.props) // 'xxx'
  }
}

const s = new Star('xxx')
console.log(s.props)
